package com.sky.mapper;

import com.sky.QueryByPage.DishQueryByPage;
import com.sky.annotation.AutoFill;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    List<Dish> getByPage(DishQueryByPage dqbg);

    Dish getById(Integer id);
    @AutoFill(value = OperationType.UPDATE)
    void update(Dish dish);

    void delete(List<Integer> ids);
    @AutoFill(value = OperationType.INSERT)
    void add(Dish dish);

    void enable(Integer status, Integer id);

    List<Dish> getList(Integer id);
}
